package com.share.alibaba.auser;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author 01401061 - 孙艳强
 * @EnableHystrix注解已经涵盖了EnableCircuitBreaker
 * @date 2020/10/27 12:34
 */
@EnableSwagger2
@EnableHystrix
@EnableFeignClients
@EnableHystrixDashboard
@MapperScan("com.share.alibaba.auser.dao")
@SpringBootApplication(scanBasePackages = {"com.share.alibaba.auser"})
public class AppAuser {
    public static void main(String[] args) {
        SpringApplication.run(AppAuser.class, args);
    }
}